package com.ltba.rf.control.thread;

public class RealTimeManager {
	
	private RealTimeData data;

	private static ThreadLocal<Object> thread = new ThreadLocal<Object>();
	
	public static RealTimeManager getInstance() {
		RealTimeManager instance = (RealTimeManager) thread.get();
		if(null == instance) {
			instance = new RealTimeManager();
		}
		thread.set(instance);
		return (RealTimeManager) thread.get();
	}

	public RealTimeData getData() {
		return data;
	}

	public void setData(RealTimeData data) {
		this.data = data;
	}
	
}
